Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Oct 27, 2025

Summary

Optimize integration test parallelization by reducing Jest workers from 200% to 100%, resulting in ~15 second speedup (7.8% faster).

Problem

Running with maxWorkers=200% on 32-core runners creates 64 parallel workers. Each test spawns child processes, performs I/O operations, and runs git commands. This over-parallelization causes resource contention and context switching overhead.

Solution

Reduce to maxWorkers=100% (32 workers) for better resource utilization.

Results

Tested across 3 CI runs:

  • Baseline: 193s test execution
  • Optimized: 173-183s test execution
  • Average improvement: ~15s (7.8% faster)

Note

The --silent flag is intentionally retained to prevent overwhelming log output from 32 parallel workers across 17 test files. Silent mode still shows test suite status, timing, coverage summary, and full failure details.


Generated with cmux

@ammar-agent ammar-agent changed the title πŸ€– Optimize CI speed: reduce integration test workers and skip brew cleanup πŸ€– Optimize integration test parallelization (maxWorkers 200% β†’ 100%) Oct 27, 2025
Reduce Jest workers from 200% to 100% on 32-core depot runners.

Problem: 64 parallel workers (200% Γ— 32 cores) caused resource contention.
Each test spawns child processes, performs I/O, and git operations.

Solution: 32 workers (100%) provides better resource utilization and
less context switching overhead.

Results from testing across 3 CI runs:
- Baseline: 193s test execution
- Optimized: 173-183s test execution
- Average improvement: ~15s (7.8% faster)

Note: --silent flag is intentional to prevent overwhelming log output
from 32 parallel workers across 17 test files. Failures still show
full details.

Generated with `cmux`
@ammario ammario added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 5c383ca Oct 27, 2025
13 checks passed
@ammario ammario deleted the investigate-speed-2 branch October 27, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants